package com.echat.business.blog.service;

import com.echat.business.blog.model.BlogTag;
import com.echat.business.blog.model.BlogTagRelation;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chentl123
 * @since 2019-09-26
 */
public interface IBlogTagRelationService extends IService<BlogTagRelation> {
    /**
     * @author chentl
     * @description 根据博客id删除
     * @date 2019/9/26 13:45
     * @params [blogId]
     * @return boolean
     * @since JDK 1.7
     */
    void deleteByBlogId(Integer blogId);

    /**
     * @author chentl
     * @description 重建博客和标签关联关系
     * @date 2019/9/26 13:49
     * @params [tags, blogId]
     * @return void
     * @since JDK 1.7
     */
    void rebuildBlogTagRelation(List<BlogTag> tags,Integer blogId);
}
